package p.sglmsn.top.ext.wx.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;
import p.sglmsn.top.ext.wx.iface.PhysicalInterface;
import p.sglmsn.top.ext.wx.iface.ReturnInterface;

/**
 * 信息收到了
 *
 * @author 王涛
 * @date 2020/12/11 10:01
 */
@Data
public class InformationReceived implements ReturnInterface, java.io.Serializable, PhysicalInterface {


    @JSONField(name = "method")
    private String method;
    @JSONField(name = "myid")
    private String myid;
    @JSONField(name = "pid")
    private Integer pid;
    @JSONField(name = "type")
    private Integer type;
    private Object data;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    @NoArgsConstructor
    @lombok.Data
    public static class Data {
        /**
         * alias :
         * reMark :
         * nickName : 流年
         * id : 2853513450219393340
         * fromid : wxid_4yr8erik0uho22
         * toid : wxid_gf1fogt5a0pq22
         * msg : 用
         * source : <msgsource />
         * des : 流年 : 用
         * time : 1607656269
         * type : 1
         */

        @JSONField(name = "alias")
        private String alias;
        @JSONField(name = "reMark")
        private String reMark;
        @JSONField(name = "nickName")
        private String nickName;
        @JSONField(name = "id")
        private String id;
        @JSONField(name = "fromid")
        private String fromid;
        @JSONField(name = "toid")
        private String toid;
        @JSONField(name = "msg")
        private String msg;
        @JSONField(name = "source")
        private String source;
        @JSONField(name = "des")
        private String des;
        @JSONField(name = "time")
        private Integer time;
        @JSONField(name = "type")
        private Integer type;

        @Override
        public String toString() {
            return JSON.toJSONString(this);
        }
    }


}



